package com.deyuanyun.pic.settings.service.prvlg.impl;

import com.deyuanyun.pic.settings.controller.dto.prvlg.MenuQuery;
import com.deyuanyun.pic.settings.controller.dto.prvlg.RoleGrant;
import com.deyuanyun.pic.settings.controller.dto.prvlg.RoleQuery;
import com.deyuanyun.pic.settings.domain.prvlg.Menu;
import com.deyuanyun.pic.settings.domain.prvlg.Role;
import com.deyuanyun.pic.settings.mapper.prvlg.MenuMapper;
import com.deyuanyun.pic.settings.mapper.prvlg.RoleMapper;
import com.deyuanyun.pic.settings.service.prvlg.MenuMgrService;
import com.deyuanyun.pic.settings.service.prvlg.RoleMgrService;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 权限模块 “菜单”服务接口实现类
 *
 * 方法详情：<br/>
 *
 * @author huanglw
 * @date  2016-11-28
 *
 * History: [修改人][时间][修改描述]
 */
@Service
public class MenuMgrServiceImpl implements MenuMgrService {

	@Resource
	private MenuMapper menuMapper;

	@Override
	public Page<Menu> query(MenuQuery menuQuery) {
		return null;
	}

	@Override
	public Menu find(String id) {
		return menuMapper.selectByPrimaryKey(id);
	}

	@Override
	public int edit(Menu menu) {
		return menuMapper.updateByPrimaryKeySelective(menu);
	}
}
